<me:UIJOB x:Class="WPFExcelReport.FULLJobBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
            xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
             mc:Ignorable="d" 
          xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
            xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"    
            xmlns:me="clr-namespace:WPFExcelReport"  
            xmlns:AF="clr-namespace:WPFExcelReport;assembly=TABFOLGE"
             >
    <me:UIJOB.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"></ucd:BoolToVisibilityConverter>
    </me:UIJOB.Resources>
    <!--BorderThickness="2,0,2,2" 左上右下-->
    <Border Cursor="Hand" x:Name="border" VerticalAlignment="Top" BorderThickness="2,2,2,2">
        <Grid Name="MGrid">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="0.5"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="5"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <me:TSHAV13 x:Name="P01" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="5" Visibility="{Binding IsPR01, Converter={StaticResource ResourceKey=bv}}" />
            <me:TSHAV13 x:Name="P02" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="5" Visibility="{Binding IsPR02, Converter={StaticResource ResourceKey=bv}}" />
            <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="9999" Grid.RowSpan="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <WrapPanel Name="C01" Grid.Row="0" Grid.Column="0"  HorizontalAlignment="Center" Visibility="{Binding IsCN01, Converter={StaticResource ResourceKey=bv}}" >
                    <TextBlock Text="{Binding Path=AUF}" Width="Auto" Margin="5,0,0,0" ></TextBlock>
                    <TextBlock Text="{Binding Path=ART}" Width="Auto"  Margin="5,0,0,0"></TextBlock>
                    <TextBlock Text="{Binding Path=FARBE}" Width="Auto"  Margin="5,0,0,0" ></TextBlock>
                </WrapPanel>
                <WrapPanel Name="C02" Grid.Row="0" Grid.Column="0"  HorizontalAlignment="Center" Visibility="{Binding IsCN02, Converter={StaticResource ResourceKey=bv}}" >
                    <TextBlock Text="{Binding Path=ART}" Width="Auto"  Margin="5,0,0,0"></TextBlock>
                    <TextBlock Text="{Binding Path=FARBE}" Width="Auto"  Margin="5,0,0,0" ></TextBlock>
                </WrapPanel>
                 
            </Grid>
            <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="9999" >
                <WrapPanel Name="C03" Grid.Row="0" Grid.Column="0"  HorizontalAlignment="Center" Visibility="{Binding IsCN03, Converter={StaticResource ResourceKey=bv}}" >
                    <TextBlock Text="{Binding Source={Localization:Translate Word=计}}" Width="Auto"   HorizontalAlignment="Center"></TextBlock>
                    <TextBlock Grid.Row="1" Text="{Binding Path=JobQty}" Width="Auto"  HorizontalAlignment="Center"  />
                    <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=产}}" Width="Auto"  HorizontalAlignment="Center"  ></TextBlock>
                    <TextBlock Grid.Column="1" Text="{Binding Path=PACTPLAN}"   Width="Auto"  ></TextBlock>
                    <TextBlock Grid.Column="2" Text="{Binding Source={Localization:Translate Word=%}}" Width="Auto"  HorizontalAlignment="Center"  ></TextBlock>
                    <TextBlock Grid.Row="1" Text="{Binding Path=QTYACT}" Width="Auto"  HorizontalAlignment="Center"  />
                    <TextBlock Grid.Row="0" Text="{Binding Path=NPQTYPLAN}" Width="Auto" HorizontalAlignment="Center"  ></TextBlock>
                    <Button Grid.Row="1" Height="20" Width="20" Margin="0,0,0,0" Click="ForwardToMU">
                        <Button.Background>
                            <ImageBrush  ImageSource="/ImagePackage;component/Images/Forward.png" />
                        </Button.Background>
                    </Button>
                </WrapPanel> 
            </Grid>
            <Grid Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="9999" Grid.RowSpan="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <WrapPanel Name="C10" Grid.Row="0" Grid.Column="0"  HorizontalAlignment="Center" Visibility="{Binding IsCN10, Converter={StaticResource ResourceKey=bv}}" >
                    <TextBlock Text="{Binding Path=AUF}" Width="Auto" Margin="5,0,0,0" ></TextBlock>
                    <TextBlock Text="{Binding Path=ART}" Width="Auto"  Margin="5,0,0,0"></TextBlock>
                    <TextBlock Text="{Binding Path=FARBE}" Width="Auto"  Margin="5,0,0,0" ></TextBlock>
                </WrapPanel>
                <WrapPanel Name="C11" Grid.Row="0" Grid.Column="0"  HorizontalAlignment="Center"  Visibility="{Binding IsCN11, Converter={StaticResource ResourceKey=bv}}" >
                    <TextBlock Text="{Binding Path=AUF}" Width="Auto" Margin="5,0,0,0" ></TextBlock>
                </WrapPanel>
                <WrapPanel Name="C12" Grid.Row="0" Grid.Column="0"  HorizontalAlignment="Center"  Visibility="{Binding IsCN12, Converter={StaticResource ResourceKey=bv}}" >
                    <TextBlock Text="{Binding Path=AUF}" Width="Auto" Margin="5,0,0,0" ></TextBlock>
                    <TextBlock Text="{Binding Path=FARBE}" Width="Auto"  Margin="5,0,0,0" ></TextBlock>
                </WrapPanel>
                <WrapPanel Name="C13" Grid.Row="0" Grid.Column="0"  HorizontalAlignment="Center"  Visibility="{Binding IsCN13, Converter={StaticResource ResourceKey=bv}}" >
                    <TextBlock Text="{Binding Path=ART}" Width="Auto"  Margin="5,0,0,0"></TextBlock>
                    <TextBlock Text="{Binding Path=FARBE}" Width="Auto"  Margin="5,0,0,0" ></TextBlock>
                </WrapPanel>
                <Grid Name="C21" Grid.Row="0" Grid.Column="1" Margin="0,0,0,0" VerticalAlignment="Center" Visibility="{Binding IsCN21, Converter={StaticResource ResourceKey=bv}}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Button Grid.Row="1" Height="20" Width="20" Margin="0,0,0,0" Click="MoreSteps">
                        <Button.Background>
                            <ImageBrush  ImageSource="/ImagePackage;component/Images/Forward.png" > 
                                <ImageBrush.RelativeTransform>
                                    <TransformGroup>
                                        <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                        <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                        <RotateTransform Angle="90" CenterY="0.5" CenterX="0.5"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </ImageBrush.RelativeTransform>
                            </ImageBrush>
                        </Button.Background>
                    </Button>
                </Grid>
            </Grid>
            <ex:AniScrollViewer Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="9999" Grid.RowSpan="1" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Hidden"  Name="FL01" Visibility="{Binding IsFL01, Converter={StaticResource ResourceKey=bv}}">
                <Grid Name="Steps">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                </Grid>
            </ex:AniScrollViewer>
            <Grid Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="9999" Grid.RowSpan="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="20"></ColumnDefinition>
                    <ColumnDefinition Width="40"></ColumnDefinition>
                    <ColumnDefinition Width="40"></ColumnDefinition>
                    <ColumnDefinition Width="40"></ColumnDefinition>
                    <ColumnDefinition Width="40"></ColumnDefinition>
                    <ColumnDefinition Width="40"></ColumnDefinition>
                    <ColumnDefinition Width="40"></ColumnDefinition>
                    <ColumnDefinition Width="30"></ColumnDefinition>
                </Grid.ColumnDefinitions>

                <Grid Name="D01" Grid.Row="0" Grid.Column="0" Margin="0,0,0,2" VerticalAlignment="Center" Visibility="{Binding IsDN01, Converter={StaticResource ResourceKey=bv}}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <TextBlock Grid.Row="0" Text="{Binding Path=NMQTYPLAN}" Width="Auto" HorizontalAlignment="Center" ></TextBlock>
                    <Button Grid.Row="1" Height="20" Width="20" Margin="0,0,0,0" Click="BackwardMU">
                        <Button.Background>
                            <ImageBrush  ImageSource="/ImagePackage;component/Images/Backward.png" />
                        </Button.Background>
                    </Button>
                </Grid>
                <Grid Name="D02" Grid.Row="0" Grid.Column="1" Background="LightBlue" Margin="0,0,0,2" Visibility="{Binding IsDN02,Converter={StaticResource ResourceKey=bv}}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <WrapPanel Grid.Row="0">
                        <TextBlock Text="{Binding Source={Localization:Translate Word=预}}" Width="Auto"  HorizontalAlignment="Center"  ></TextBlock>
                        <TextBlock Text="{Binding Path=NMQTYPLAN}"   Width="Auto"  ></TextBlock>
                    </WrapPanel>
                    <TextBlock  Grid.Row="1"  Text="{Binding Path=MQTYPLAN}" Width="Auto" HorizontalAlignment="Center"  />
                </Grid>
                <Grid Name="D03" Grid.Row="0" Grid.Column="2" Background="LightGreen" Margin="0,0,0,2" Visibility="{Binding IsDN03,Converter={StaticResource ResourceKey=bv}}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <WrapPanel>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=料}}" Width="Auto"  HorizontalAlignment="Center"  ></TextBlock>
                        <TextBlock Text="{Binding Path=NMQTYBOOK}"   Width="Auto"  ></TextBlock>
                    </WrapPanel>
                    <TextBlock Grid.Row="1" Text="{Binding Path=MQTYBOOK}" Width="Auto"  HorizontalAlignment="Center"   ></TextBlock>
                </Grid>

                <Grid Name="D04" Grid.Row="0" Grid.Column="3" Background="LightYellow" Margin="0,0,0,2" Visibility="{Binding IsDN04,Converter={StaticResource ResourceKey=bv}}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid Grid.Row="0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=用}}" Width="Auto"  HorizontalAlignment="Center"  ></TextBlock>
                        <TextBlock Grid.Column="1" Text="{Binding Path=PMACTPLAN}"   Width="Auto"  ></TextBlock>
                        <TextBlock Grid.Column="2" Text="{Binding Source={Localization:Translate Word=%}}" Width="Auto"  HorizontalAlignment="Center"  ></TextBlock>
                    </Grid>
                    <TextBlock Grid.Row="1" Text="{Binding Path=MQTYUSED}" Width="Auto"  HorizontalAlignment="Center"   ></TextBlock>
                </Grid>

                <Grid  Name="D05" Grid.Row="0" Grid.Column="4" Margin="0,0,0,2" Visibility="{Binding IsDN05,Converter={StaticResource ResourceKey=bv}}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=计}}" Width="Auto"   HorizontalAlignment="Center"></TextBlock>
                    <TextBlock Grid.Row="1" Text="{Binding Path=JobQty}" Width="Auto"  HorizontalAlignment="Center"  />
                </Grid>
                <Grid Name="D06" Grid.Row="0" Grid.Column="5"  Background="LightYellow" Margin="0,0,0,2" Visibility="{Binding IsDN06,Converter={StaticResource ResourceKey=bv}}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid Grid.Row="0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=产}}" Width="Auto"  HorizontalAlignment="Center"  ></TextBlock>
                        <TextBlock Grid.Column="1" Text="{Binding Path=PACTPLAN}"   Width="Auto"  ></TextBlock>
                        <TextBlock Grid.Column="2" Text="{Binding Source={Localization:Translate Word=%}}" Width="Auto"  HorizontalAlignment="Center"  ></TextBlock>
                    </Grid>
                    <TextBlock Grid.Row="1" Text="{Binding Path=QTYACT}" Width="Auto"  HorizontalAlignment="Center"  />
                </Grid>

                <Grid  Name="D07" Grid.Row="0" Grid.Column="6" Background="LightBlue" Margin="0,0,0,2" Visibility="{Binding IsDN07,Converter={StaticResource ResourceKey=bv}}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <WrapPanel Grid.Row="0">
                        <TextBlock Text="{Binding Source={Localization:Translate Word=至}}" Width="Auto"  HorizontalAlignment="Center"  ></TextBlock>
                        <TextBlock Text="{Binding Path=NPQTYPLAN}"   Width="Auto"  ></TextBlock>
                    </WrapPanel>
                    <TextBlock Grid.Row="1" Text="{Binding Path=PQTYPLAN}" Width="Auto" HorizontalAlignment="Center"  />
                </Grid>

                <Grid Name="D08" Grid.Row="0" Grid.Column="7" Margin="0,0,0,0" VerticalAlignment="Center" Visibility="{Binding IsDN08,Converter={StaticResource ResourceKey=bv}}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <TextBlock Grid.Row="0" Text="{Binding Path=NPQTYPLAN}" Width="Auto" HorizontalAlignment="Center"  ></TextBlock>
                    <Button Grid.Row="1" Height="20" Width="20" Margin="0,0,0,0" Click="ForwardToMU">
                        <Button.Background>
                            <ImageBrush  ImageSource="/ImagePackage;component/Images/Forward.png" />
                        </Button.Background>
                    </Button>
                </Grid>
            </Grid>
        </Grid>
    </Border>
</me:UIJOB>
